﻿<%@ Page Language="C#" MasterPageFile="~/home.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="testing.aspx.cs" Inherits="testing" Title="Testing" %>

<asp:Content ContentPlaceHolderID="head" Runat="Server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="200" valign="top" bgcolor="#e8eaed">
                <asp:Panel ID="panel_menulist" Width="100%" runat="server"></asp:Panel>
            </td>
            <td valign="top" style="padding-left:10px">
                
                <fieldset>
                    <legend style="font-size:15px;color:#F00">Round List</legend>
                    <div style="font-size: 15px;color:#F00;text-align:center">
                        <b><asp:Label ID="lbl_round_list" runat="server" Text=""></asp:Label></b>
                    </div>
                    <asp:GridView ID="mGridView" Width="100%" runat="server" BorderColor="#CC9966" BorderWidth="1px"
                        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" onselectedindexchanged="mGridView_SelectedIndexChanged">
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="round" HeaderText="Round">
                                <ItemStyle HorizontalAlign="Center" Width="45px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="examtest" HeaderText="Exam Code" />
                            <asp:BoundField DataField="codelogin" HeaderText="Code Login" />
                            <asp:BoundField DataField="pass" HeaderText="Password" />
                            <asp:BoundField DataField="datetest" HeaderText="Date Test" >
                                <ItemStyle HorizontalAlign="Center" Width="70px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="timestart" HeaderText="Time Start" >
                                <ItemStyle HorizontalAlign="Right" Width="70px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="status" HeaderText="Status" >
                                <ItemStyle HorizontalAlign="Center" Width="50px" />
                            </asp:BoundField>
                            <asp:CommandField HeaderText="Select" SelectText="Select" ShowSelectButton="True">
                                <ItemStyle HorizontalAlign="Center" Width="50px" />
                            </asp:CommandField>
                        </Columns>
                        <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </fieldset>
            
                <fieldset style="margin-top:10px" id="layout_login" runat="server">
                    <legend style="font-size:15px;color:#F00">Login Test</legend>
                    <asp:ValidationSummary runat="server" ValidationGroup="vl" />
                    <table width="100%" border="0" cellspacing="10" style="font-size: 18px">
                        <tr>
                            <td width="170" align="right">Exam Code</td>
                            <td>
                                <asp:Label ID="lbl_examcode" style="color:#00F" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Login Code</td>
                            <td>
                                <asp:TextBox ID="txt_code" class="input_text_view" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="txt_code"
                                    ErrorMessage="Login Code is not empty." ValidationGroup="vl">*</asp:RequiredFieldValidator>
                                
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Password</td>
                            <td>
                                <asp:TextBox ID="txt_pass" class="input_text_view" TextMode="Password" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="txt_pass"
                                    ErrorMessage="Password is not empty." ValidationGroup="vl">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:Button ID="btn_login" Enabled="false" ValidationGroup="vl" class="btnWhite" runat="server" Text="Login" onclick="btn_login_Click" />
                            </td>
                        </tr>
                    </table>
                    <div style="font-size: 15px; color: #F00; padding-top: 10px;text-align:center">
                        <b><asp:Label ID="lbl_msg" runat="server" Text=""></asp:Label></b>
                    </div>
                </fieldset>
            </td>
        </tr>
    </table>
</asp:Content>